package com.xingchi.tornado.sms.model.dto;

import com.xingchi.tornado.model.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 短信日志记录表
 * </p>
 *
 * @author xingchi
 * @date 2024-05-27 15:33
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "NoteLogRecordDTO", description = "短信日志记录表")
public class NoteLogRecordDTO extends BaseDTO {

    /**
     * 模板id
     */
    @Schema(description = "模板id")
    private Long templateId;

    /**
     * 消息id，用于标识同一批次
     */
    @Schema(description = "消息id，用于标识同一批次")
    private Long messageId;

    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 短信内容
     */
    @Schema(description = "短信内容")
    private String content;

    /**
     * 发送状态 1 成功、0 失败
     */
    @Schema(description = "发送状态 1 成功、0 失败")
    private Integer status;

    /**
     * 错误原因
     */
    @Schema(description = "错误原因")
    private String cause;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
